﻿namespace FileService.Infrastructure.Context;

public class FileDbContext : BaseDbContext
{
    public DbSet<UploadedItem> UploadItems { get; private set; }

    public FileDbContext(DbContextOptions<FileDbContext> options, IMediator? mediator)
        : base(options, mediator)
    {
    }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        base.OnModelCreating(modelBuilder);
        modelBuilder.ApplyConfigurationsFromAssembly(GetType().Assembly);
    }
}